package org.bees.cms.web.action.style;

import javax.annotation.Resource;

import org.bees.cms.core.style.Theme;
import org.bees.cms.service.Service;
import org.bees.cms.service.style.ThemeService;
import org.bees.cms.web.action.EditActionSupport;
import org.bees.cms.web.action.StaticizeAction;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

@Scope("prototype")
@Controller
public class ThemeEditAction extends EditActionSupport<Theme> implements StaticizeAction {
	@Resource
	private ThemeService themeServiceBean;

	@Override
	public Service<Theme> service() {
		return themeServiceBean;
	}

	@Override
	public String staticize() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Theme getDomain() {
		return domain;
	}

	@Override
	public void setDomain(Theme domain) {
		this.domain = domain;
	}

}
